﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CuaHangLego.Webform
{
    public partial class UploadTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            WebClient myWebClient = new WebClient();
            myWebClient.Credentials = new System.Net.NetworkCredential("IUSR", "");
            byte[] responseArray = myWebClient.UploadFile("http://localhost:7190/img/", "D:/fbb.gif");
        }
    }
}